/**
 * 
 */
package br.ufal.ic.sd.project.server.factory;

import br.ufal.ic.sd.project.server.core.ServerService;
import br.ufal.ic.sd.project.server.enumeration.ServiceType;
import br.ufal.ic.sd.project.server.services.LoggerService;
import br.ufal.ic.sd.project.server.services.ReplicationService;
import br.ufal.ic.sd.project.server.services.TokenService;

/**
 * @author keven andrade
 *
 */
public class ServiceFactory {
    
    public static ServerService getInstance(String strServiceName){
	
	if(strServiceName.equals(ServiceType.LOGGER.getStrDescription())){
	    return new LoggerService();
	}
	
	if(strServiceName.equals(ServiceType.TOKEN.getStrDescription())){
	    return new TokenService();
	}
	
	if(strServiceName.equals(ServiceType.REPLICATION.getStrDescription())){
	    return new ReplicationService();
	}
	
	return null;
	
    }

}
